using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;

namespace NBusiness.Data
{
    public class PersistEventArgs : EventArgs
    {
        private DbTransaction _transaction;

        public DbTransaction Transaction
        {
            get { return _transaction; }
        }
        private PersistType _type = PersistType.Downward;

        public PersistType Type
        {
            get { return _type; }
        }

        public PersistEventArgs(DbTransaction transaction)
            : this(transaction, PersistType.Upward)
        { }
        public PersistEventArgs(DbTransaction transaction, PersistType type)
        {
            _transaction = transaction;
            _type = type;
        }
    }
}
